import docker
client = docker.from_env()
print(client.containers.run('first',["python", "test_docker.py"]))
# client =  docker.APIClient(base_url='unix://var/run/docker.sock',version='auto',timeout=10)
# client = docker.APIClient(base_url='tcp://127.0.0.1:8899',version='1.21',timeout=5)

# client.containers.run("ubuntu:latest", "echo hello world")